//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "StudentWorks.h"
#include "datamodule.h"
#include "Group.h"
#include "main.h"
#include "Search.h"
#include "StatForm.h"
#include "StudentList.h"
#include "Teacher.h"
#include "TeacherList.h"
#include "Work.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TStudentWorksForm *StudentWorksForm;
//---------------------------------------------------------------------------
__fastcall TStudentWorksForm::TStudentWorksForm(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TStudentWorksForm::Button1Click(TObject *Sender)
{
    InitRep();
    QuickRep1->Preview();
}
//---------------------------------------------------------------------------
void __fastcall TStudentWorksForm::Button2Click(TObject *Sender)
{
    InitRep();
    QuickRep1->Print();
}
//---------------------------------------------------------------------------
void __fastcall TStudentWorksForm::InitRep(void)
{
               QRLabel14->Caption = dm->adStudents->FieldByName("Familia")->AsString + " "
                                + dm->adStudents->FieldByName("Name")->AsString + " "
                                + dm->adStudents->FieldByName("Otchestvo")->AsString;

}



